:root {
  --body-bg: #080707;
  --msger-bg: #080707;
  --border: 1px #272a30 solid;
  --left-msg-bg: #1c1e22;
  --right-msg-bg: #001a3d;
}

.msger {
  display: flex;
  flex-flow: column wrap;
  justify-content: space-between;
  width: 100%;
  max-width: 867px;
  height: 100%;
  border-left: var(--border);
  border-radius: 5px;
  background: var(--msger-bg);
  box-shadow: 0 15px 15px -5px rgba(0, 0, 0, 0.2);
}

.msger-header {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  border-bottom: var(--border);
  background: #eee;
  color: #666;
}

/* .msger-chat::-webkit-scrollbar {
  width: 6px;
}
.msger-chat::-webkit-scrollbar-track {
  background: #080707;
}
.msger-chat::-webkit-scrollbar-thumb {
  background: #bdbdbd;
} */
.msg {
  display: flex;
  align-items: flex-end;
  margin-bottom: 10px;
}
.msg:last-of-type {
  margin: 0;
}
.msg-img {
  width: 50px;
  height: 50px;
  margin-right: 10px;
  background: #ddd;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  border-radius: 50%;
}

.msg-text {
  padding: 8px 14px;
}
.msg-bubble {
  word-wrap: break-word;
  max-width: 450px;
  padding: 2px;
  border-radius: 18px;
  background: var(--left-msg-bg);
}
.msg-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.msg-info-name {
  margin-right: 10px;
  font-weight: bold;
}
.msg-info-time {
  font-size: 0.85em;
}

.left-msg .msg-bubble {
  border-bottom-left-radius: 2px;
  color: #fff;
}

.right-msg {
  flex-direction: row-reverse;
}
.right-msg .msg-bubble {
  background: var(--right-msg-bg);
  color: #fff;
  border-bottom-right-radius: 2px;
}
.right-msg .msg-img {
  margin: 0 0 0 10px;
}

.msger-inputArea {
  display: flex;
  border-top: var(--border);
}
.msger-inputArea * {
  border: none;
  font-size: 1em;
}
.msger-input {
  flex: 1;
}
.msger-send-btn {
  margin-left: 10px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.23s;
}
.msger-send-btn * {
  cursor: pointer;
}

.msger-send-btn:hover svg rect {
  fill: rgb(0, 180, 50);
}

.msger-chat {
  flex: 1;
  background-color: var(--msger-bg);
  border: none;
}

.msger-chat-area {
  overflow-y: auto;
  padding: 10px;
}

.msger-input {
  pointer-events: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.msg-text {
  font-size: 18px;
}
